<!--
Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->

<script>
function CTMasterFailureGroupData(failure, examineUrl) {
  this.failure = failure;
  this.key = failure.key;
  this.category = 'master';
  this.url = examineUrl;
};

CTMasterFailureGroupData.prototype.getAnnotations = function() {
  return this.annotation ? [this.annotation] : [];
};

CTMasterFailureGroupData.prototype.failureKeys = function() {
  return [this.failure.key];
};
</script>
